package com.ruoyi.module.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 词典对象 dict_book
 * 
 * @author ruoyi
 */
public class DictBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 词典ID */
    @Excel(name = "词典ID")
    private String id;

    /** 词典名称 */
    @Excel(name = "词典名称")
    private String name;

    /** 词典描述 */
    @Excel(name = "词典描述")
    private String description;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 词典文件路径 */
    @Excel(name = "词典文件路径")
    private String url;

    /** 词汇数量 */
    @Excel(name = "词汇数量")
    private Integer length;

    /** 语言 */
    @Excel(name = "语言")
    private String language;

    /** 语言分类ID */
    @Excel(name = "语言分类ID")
    private String languageCategory;

    /** 来源类型（0系统词典 1用户自定义） */
    @Excel(name = "来源类型", readConverterExp = "0=系统词典,1=用户自定义")
    private String sourceType;

    /** 所属用户ID（用户自定义词典时使用） */
    @Excel(name = "所属用户ID")
    private Long userId;

    /** 是否已加载到数据库（0未加载 1已加载） */
    @Excel(name = "是否已加载", readConverterExp = "0=未加载,1=已加载")
    private String isLoaded;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 是否免费（0否 1是） */
    @Excel(name = "是否免费", readConverterExp = "0=否,1=是")
    private String isFree;

    /** 标签列表 */
    private List<String> tags;

    /** 标签对象列表 */
    private List<DictTag> tagList;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }

    public void setLength(Integer length) 
    {
        this.length = length;
    }

    public Integer getLength() 
    {
        return length;
    }

    public void setLanguage(String language) 
    {
        this.language = language;
    }

    public String getLanguage() 
    {
        return language;
    }

    public void setLanguageCategory(String languageCategory) 
    {
        this.languageCategory = languageCategory;
    }

    public String getLanguageCategory() 
    {
        return languageCategory;
    }

    public void setSourceType(String sourceType) 
    {
        this.sourceType = sourceType;
    }

    public String getSourceType() 
    {
        return sourceType;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setIsLoaded(String isLoaded) 
    {
        this.isLoaded = isLoaded;
    }

    public String getIsLoaded() 
    {
        return isLoaded;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setIsFree(String isFree) 
    {
        this.isFree = isFree;
    }

    public String getIsFree() 
    {
        return isFree;
    }

    public List<String> getTags() 
    {
        return tags;
    }

    public void setTags(List<String> tags) 
    {
        this.tags = tags;
    }

    public List<DictTag> getTagList() 
    {
        return tagList;
    }

    public void setTagList(List<DictTag> tagList) 
    {
        this.tagList = tagList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("description", getDescription())
            .append("category", getCategory())
            .append("url", getUrl())
            .append("length", getLength())
            .append("language", getLanguage())
            .append("languageCategory", getLanguageCategory())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}

